<html>
  <head>
    <script language="javascript">
      function displayDate(){
      document.getElementById("demo").innerHTML=Date();
      }
    </script>
  </head>
  <h1>My first javascript</h1>

  <p id = "demo"> This is a paragraph.</p>
  <button type="button" onclick="displayDate()">Display Date</button>
  
  <body>
  </body>
</html> 
